package cn.sdormitory.exam.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.ss.formula.functions.T;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Set;

/**
 * @author : yy
 * @date: 2025/1/7 16:53
 * @description:
 */
@Data
public class EditExamVo {
    @ApiModelProperty(value="主键")
    private Integer id;
    @ApiModelProperty(value="考试名称")
    private String name;
    @ApiModelProperty(value="班级id")
    private Integer classId;
    @ApiModelProperty(value="专业id")
    private Integer subjectId;
    @ApiModelProperty(value="课程id")
    private Integer courseId;
    @ApiModelProperty(value="考试类型(见字典)")
    private String examType;

    @ApiModelProperty(value="考试日期")
    @JsonSerialize(using = LocalDateSerializer.class)
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
    private LocalDate examDate;
    @ApiModelProperty(value="备注")
    private String remark;


    @ApiModelProperty(value="考试班级")
    private Set<Integer> classIds;
    @ApiModelProperty(value="考试课程[[专业id,课程id,考试类型]]")
    private Set<List<Object>> courseOpt;
}
